package com.bumptech.glide.load.resource.bitmap;

import android.graphics.drawable.BitmapDrawable;
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
import com.bumptech.glide.load.resource.drawable.DrawableResource;
import com.bumptech.glide.util.Util;

public class BitmapDrawableResource extends DrawableResource<BitmapDrawable>
{
  private final BitmapPool bitmapPool;

  public BitmapDrawableResource(BitmapDrawable paramBitmapDrawable, BitmapPool paramBitmapPool)
  {
    super(paramBitmapDrawable);
    this.bitmapPool = paramBitmapPool;
  }

  public int getSize()
  {
    return Util.getBitmapByteSize(((BitmapDrawable)this.drawable).getBitmap());
  }

  public void recycle()
  {
    this.bitmapPool.put(((BitmapDrawable)this.drawable).getBitmap());
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.bumptech.glide.load.resource.bitmap.BitmapDrawableResource
 * JD-Core Version:    0.6.2
 */